home *** CD-ROM | disk | FTP | other *** search
- ; script to install ADProRunner
-
- (set Opt 5)
- (complete 0)
-
- ;Get directory to install ADProRunner in.
- (set destdir
- (askdir
- (prompt "In which drawer should ADProRunner be installed?")
- (help @askdir-help)
- (default (tackon @default-dest "Utilities"))
- )
- )
-
- (complete 10)
-
- (if (NOT (exists "libs:cando.library" (noreq)))
- (set Opt 6)
- )
-
-
- (set installfiles
- (askoptions
- (prompt "Which of the following optional programs/helpfile should be installed ?")
- (help @askoptions-help)
- (choices "ADProRunner requires Cando.library (10 KB)" "ADProRunner StandAlone (140 KB)" "ADProRunner.Guide (Requires Multiview)")
- (default Opt)
- )
- )
-
- (complete 30)
-
- ;Copy program files to destination.
-
- (if (BITAND installfiles 1)
- (copyfiles
- (source "ADProRunner_Short")
- (dest destdir)
- )
- )
-
- (if (BITAND installfiles 1)
- (
- (set RenameFiles ("c:rename %sADProRunner_Short %sADProRunner" destdir destdir ))
- (run (RenameFiles))
- )
- )
-
- (if (BITAND installfiles 1)
- (copyfiles
- (source "ADProRunner.info")
- (dest destdir)
- )
- )
-
- (complete 40)
-
- (if (BITAND installfiles 2)
- (copyfiles
- (source "ADProRunner")
- (dest destdir)
- )
- )
-
- (if (BITAND installfiles 2)
- (copyfiles
- (source "ADProRunner.info")
- (dest destdir)
- )
- )
- (complete 60)
-
- (if (BITAND installfiles 4)
- (
- (set RenameFiles ("c:makedir help:english" ))
- (run (RenameFiles))
-
- (copyfiles
- (source "Help/ADProRunner.guide")
- (dest "help:english/")
- )
- )
- )
-
- (if (BITAND installfiles 4)
- (copyfiles
- (source "Help/ADProRunner.guide.info")
- (dest "help:english/")
- )
- )
-
- (complete 70)
-
- (set ADProRunner_dir "env:")
-
- (if (NOT (exists ADProRunner_dir (noreq)))
- (set ADProRunner_dir "S:")
- )
-
- (copyfiles
- (source "Prefs/ADProRunner.prefs")
- (dest ADProRunner_dir)
- )
-
- (set ADProRunner_dir "envarc:")
-
- (if (NOT (exists ADProRunner_dir (noreq)))
- (set ADProRunner_dir "S:")
- )
-
- (copyfiles
- (source "Prefs/ADProRunner.prefs")
- (dest ADProRunner_dir)
- )
-
- (complete 80)
-
- ;Correct @default-dest so that final information is correct.
- (set @default-dest destdir)
-
- (complete 100)
-
- (exit)
-